package com.aplink.generic.constant.type;

import android.view.View;

public enum ControlStatus {
	Disable(200, "Disable"),
	Enable(100, "Enable"),
	Gone(View.GONE, "Gone"),
	Invisible(View.INVISIBLE, "Invisible"),
	None(300, "None"),
	Visible(View.VISIBLE, "Visible");

	public static ControlStatus get(String name) {
		for (ControlStatus status : values()) {
			if (status.getName().equalsIgnoreCase(name)) {
				return status;
			}
		}
		return None;
	}
	private String mName;

	private int mValue;

	private ControlStatus(int value, String name) {
		mName = name;
		mValue = value;
	}

	public final String getName() {
		return mName;
	}

	public final int getValue() {
		return mValue;
	}
}
